\hypertarget{classc_height_map}{\section{c\-Height\-Map类 参考}
\label{classc_height_map}\index{c\-Height\-Map@{c\-Height\-Map}}
}


提供\-Y值给地形。 加载外部高度图文件。地图行和列的顶点数必须为2$^\wedge$n+1；  




{\ttfamily \#include $<$c\-Height\-Map.\-h$>$}

\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classc_height_map_ad8d789ee544620cfdfeab41cc25745fa}{c\-Height\-Map} (int Num\-Row, int Num\-Col, string File\-Name, float Height\-Scal, float Height\-Offset)
\item 
\hypertarget{classc_height_map_ae6584bd7323c2392826c8485607dd1b2}{void {\bfseries load\-\_\-row} (int Num\-Row, int Num\-Col, const string File\-Name, float Height\-Scal, float Height\-Offset)}\label{classc_height_map_ae6584bd7323c2392826c8485607dd1b2}

\item 
\hypertarget{classc_height_map_a1d6e5c3fb99be06826ed829fc69e03da}{float {\bfseries get\-Height} (int i, int j)}\label{classc_height_map_a1d6e5c3fb99be06826ed829fc69e03da}

\item 
\hypertarget{classc_height_map_ad8d789ee544620cfdfeab41cc25745fa}{{\bfseries c\-Height\-Map} (int Num\-Row, int Num\-Col, string File\-Name, float Height\-Scal, float Height\-Offset)}\label{classc_height_map_ad8d789ee544620cfdfeab41cc25745fa}

\item 
\hypertarget{classc_height_map_ae6584bd7323c2392826c8485607dd1b2}{void {\bfseries load\-\_\-row} (int Num\-Row, int Num\-Col, const string File\-Name, float Height\-Scal, float Height\-Offset)}\label{classc_height_map_ae6584bd7323c2392826c8485607dd1b2}

\item 
\hypertarget{classc_height_map_a1d6e5c3fb99be06826ed829fc69e03da}{float {\bfseries get\-Height} (int i, int j)}\label{classc_height_map_a1d6e5c3fb99be06826ed829fc69e03da}

\end{DoxyCompactItemize}
\subsection*{Protected 成员函数}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classc_height_map_a324e829bf95e8341f461d3b9228994c1}{bool {\bfseries is\-In\-Bounds} (int i, int j)}\label{classc_height_map_a324e829bf95e8341f461d3b9228994c1}

\item 
\hypertarget{classc_height_map_a2b9d97bca5ac1b9023adb99383069688}{void {\bfseries sample\-Height3\-X3} ()}\label{classc_height_map_a2b9d97bca5ac1b9023adb99383069688}

\item 
\hypertarget{classc_height_map_a4e5c1163334f521e2d0573d6abbb8cc9}{float {\bfseries filter3\-X3} (int i, int j)}\label{classc_height_map_a4e5c1163334f521e2d0573d6abbb8cc9}

\item 
\hypertarget{classc_height_map_a324e829bf95e8341f461d3b9228994c1}{bool {\bfseries is\-In\-Bounds} (int i, int j)}\label{classc_height_map_a324e829bf95e8341f461d3b9228994c1}

\item 
\hypertarget{classc_height_map_a2b9d97bca5ac1b9023adb99383069688}{void {\bfseries sample\-Height3\-X3} ()}\label{classc_height_map_a2b9d97bca5ac1b9023adb99383069688}

\item 
\hypertarget{classc_height_map_a4e5c1163334f521e2d0573d6abbb8cc9}{float {\bfseries filter3\-X3} (int i, int j)}\label{classc_height_map_a4e5c1163334f521e2d0573d6abbb8cc9}

\end{DoxyCompactItemize}
\subsection*{Protected 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classc_height_map_a4c231c24bdd46551ca0c10fa601c28a3}{bool {\bfseries m\-\_\-b\-Is\-Load}}\label{classc_height_map_a4c231c24bdd46551ca0c10fa601c28a3}

\item 
\hypertarget{classc_height_map_af79a4d0dae204008d13fa8d62a285409}{\hyperlink{classc_table}{c\-Table}$<$ float $>$ {\bfseries m\-\_\-\-Height\-Map}}\label{classc_height_map_af79a4d0dae204008d13fa8d62a285409}

\end{DoxyCompactItemize}


\subsection{详细描述}
提供\-Y值给地形。 加载外部高度图文件。地图行和列的顶点数必须为2$^\wedge$n+1； 

\subsection{构造及析构函数说明}
\hypertarget{classc_height_map_ad8d789ee544620cfdfeab41cc25745fa}{\index{c\-Height\-Map@{c\-Height\-Map}!c\-Height\-Map@{c\-Height\-Map}}
\index{c\-Height\-Map@{c\-Height\-Map}!cHeightMap@{c\-Height\-Map}}
\subsubsection[{c\-Height\-Map}]{\setlength{\rightskip}{0pt plus 5cm}c\-Height\-Map\-::c\-Height\-Map (
\begin{DoxyParamCaption}
\item[{int}]{Num\-Row, }
\item[{int}]{Num\-Col, }
\item[{string}]{File\-Name, }
\item[{float}]{Height\-Scal, }
\item[{float}]{Height\-Offset}
\end{DoxyParamCaption}
)}}\label{classc_height_map_ad8d789ee544620cfdfeab41cc25745fa}

\begin{DoxyParams}{参数}
{\em Num\-Row,\-:} & y坐标 \\
\hline
{\em Num\-Col,\-:} & x坐标 \\
\hline
{\em Height\-Scal,\-:} & 给高度值做乘法 \\
\hline
{\em Height\-Offset,\-:} & 给高度值做加法 \\
\hline
\end{DoxyParams}
\begin{DoxyRemark}{备注}
内部调用load\-\_\-row()来完成。 
\end{DoxyRemark}


该类的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
E\-:/!代码工厂/3\-D引擎/c\-Height\-Map.\-h\item 
E\-:/!代码工厂/3\-D引擎/D\-E\-B\-U\-G版 c\-Height\-Map.\-h\item 
E\-:/!代码工厂/3\-D引擎/c\-Height\-Map.\-cpp\item 
E\-:/!代码工厂/3\-D引擎/D\-E\-B\-U\-G版 c\-Height\-Map.\-cpp\end{DoxyCompactItemize}
